import 'package:freezed_annotation/freezed_annotation.dart';
import 'dart:convert';

part 'sms_send_response.freezed.dart';
part 'sms_send_response.g.dart';

@freezed
class SmsSendResponse with _$SmsSendResponse {
  const factory SmsSendResponse({
    @JsonKey(name: "code") required int code,
    @JsonKey(name: "msg") required String msg,
    @JsonKey(name: "time") required String time,
    @JsonKey(name: "data") required dynamic data,
  }) = _SmsSendResponse;

  factory SmsSendResponse.fromJson(Map<String, dynamic> json) =>
      _$SmsSendResponseFromJson(json);
}
